<?php
/**
 * Created by PhpStorm.
 * User: cz
 * Date: 2017/4/15
 * Time: 23:56
 */
 namespace Home\Controller;
 use Think\Controller;
 use Common\Model;
 class InfoController extends Controller{
     public function info(){
         $result = D("UserInfo")->getQuestion();
         $this->assign("userData",$result);
         $infoId = I("get.id","null");
         //dump($infoId);die();
         if(is_null($infoId)){
             return;
         }
         $resultUser = D("UserInfo")->getIdForUserInfo($infoId);
         //dump($result);die();
         $this->assign("getInfo",$resultUser);
         $this->display();
     }
 }